home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 15 / macformat_15.iso / C de cerca / Codewarrior Lite / MacOS Support / Headers / ANSI Headers / utime.h < prev    next >
Text File  |  1995-12-29  |  1KB  |  62 lines

  1. /*
  2.  *    File:        utime.h
  3.  *                ©1993-1995 metrowerks Inc. All rights reserved
  4.  *    Author:        Berardino E. Baratta
  5.  *
  6.  *    Content:    Interface file to standard UNIX-style entry points ...
  7.  *
  8.  *    NB:            This file implements some UNIX low level support.  These functions
  9.  *                are not guaranteed to be 100% conformant.
  10.  */
  11.  
  12. #ifndef _UTIME
  13. #define _UTIME
  14.  
  15. #ifndef _TIME
  16. #include <time.h>
  17. #endif
  18.  
  19. #pragma options align=mac68k
  20.  
  21. #if __CFM68K__ && __USING_IMPORTED_ANSI__
  22. #pragma import on
  23. #endif
  24.  
  25. /* struct for utime */
  26. struct utimbuf {
  27.     time_t actime;                    /* access time (ignored on the Mac) */
  28.     time_t modtime;                    /* modification time */
  29. };
  30.  
  31. /* struct for utimes */
  32. struct timeval {
  33.     int tv_sec;                        /* seconds */
  34.     int tv_usec;                    /* microseconds (ignored on the Mac) */
  35. };
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40.  
  41. /*
  42.  *    Set the file time stamps.
  43.  */
  44. int utime(const char *path, const struct utimbuf *buf);
  45.  
  46. /*
  47.  *    Set the file time stamps.
  48.  */
  49. int utimes(const char *path, struct timeval buf[2]);
  50.  
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54.  
  55. #if __CFM68K__ && __USING_IMPORTED_ANSI__
  56. #pragma import reset
  57. #endif
  58.  
  59. #pragma options align=reset
  60.  
  61. #endif
  62.